﻿@model XPressify.Models.AlbumUploadFileModel
@using XPressify.Models

@{
    ViewBag.Title = "Album file uploads";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@using (Html.BeginForm(Model.ActionName, Model.ControllerName , FormMethod.Post, new { enctype = "multipart/form-data" })) {
    <fieldset>
    @Html.HiddenFor(model => model.Id)
    <div>
        @if (Model.SingleUpload)
        {
            <text>Description:</text>
            <br />
            @Html.TextAreaFor(model => model.SingleUploadDescription, 2, 30, new { style = "resize: none;" })
            @Html.Partial("FileUploaderSimpleSingle", new MediaUploadModel { ActionName = Model.ActionName, ControllerName = Model.ControllerName })
            
        }
        else
        {
            @Html.HiddenFor(model => model.SingleUploadDescription)
            @Html.Partial("FileUploaderSimple", new MediaUploadModel { ActionName = Model.ActionName, ControllerName = Model.ControllerName })
        }
    </div>   
    <p>
        <input type="submit" value="Upload" />
    </p>
    </fieldset>
}
